package com.alibaba.cloud.client8081.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * created by wuquan at 29/04/2021
 * ^_^ ^_^
 * 说明：
 */
@ConfigurationProperties(prefix = "user")
@Configuration
@RefreshScope
@Data
public class UserConfig {

    private String name;
    private Integer age;

    private String ipAddr;

}
